package com.example.huixue.dto;

import java.time.LocalDateTime;

/**
 * 管理员信息响应DTO
 */
public class AdminInfoResponse {
    private Integer adminId;
    private String username;
    private String email;
    private String status;
    private LocalDateTime createdAt;
    private LocalDateTime lastLoginTime;
    private String token;
    private String role = "ADMIN"; // 管理员角色
    private String userRole = "ADMIN"; // 为了与前端保持一致
    
    // 构造方法
    public AdminInfoResponse() {}
    
    // Getter和Setter方法
    public Integer getAdminId() {
        return adminId;
    }
    
    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }
    
    public String getUsername() {
        return username;
    }
    
    public void setUsername(String username) {
        this.username = username;
    }
    
    public String getEmail() {
        return email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }
    
    public String getStatus() {
        return status;
    }
    
    public void setStatus(String status) {
        this.status = status;
    }
    
    public LocalDateTime getCreatedAt() {
        return createdAt;
    }
    
    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }
    
    public LocalDateTime getLastLoginTime() {
        return lastLoginTime;
    }
    
    public void setLastLoginTime(LocalDateTime lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }
    
    public String getToken() {
        return token;
    }
    
    public void setToken(String token) {
        this.token = token;
    }
    
    public String getRole() {
        return role;
    }
    
    public void setRole(String role) {
        this.role = role;
        this.userRole = role; // 保持同步
    }
    
    public String getUserRole() {
        return userRole;
    }
    
    public void setUserRole(String userRole) {
        this.userRole = userRole;
        this.role = userRole; // 保持同步
    }
} 